home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
mechacatdestructo.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2007-10-01
|
1KB
|
57 lines
_global.ipbSend = function(ipb_score)
{
_root._visible = false;
_root.enabled = false;
if(ipb_score == eval("undefined"))
{
ipb_score = eval(_global.ipb_scoreVar);
}
stopAllSounds();
xx = new LoadVars();
xx.gname = _global.ipb_get_gname();
xx.gscore = ipb_score;
xx.send("index.php?act=Arcade&do=newscore","_self","POST");
stop();
};
_global.ipb_get_gname = function()
{
var u = _root._url;
var ipb_gname = "";
var ch = "";
var startPos = u.lastIndexOf("\\") + 1;
if(startPos == -1 || startPos == 0)
{
startPos = u.lastIndexOf("/") + 1;
}
var x = startPos;
var len = String(u).length;
while(x < String(u).length)
{
ch = u.charAt(x);
if(ch == ".")
{
break;
}
ipb_gname += ch;
x = eval("x") + 1;
}
return ipb_gname;
};
fscommand("showmenu",false);
fscommand("trapallkeys",true);
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function(success)
{
if(!success)
{
stop();
}
else
{
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = "arcade/gamedata/" + ipb_gname + "/" + ipb_gname + ".txt";
xx.load(fname);